Skip to content

feat(OKISO): Add activity#10778

Closed
okisooo wants to merge 1 commit into
PreMiD:mainfrom
okisooo:add-okiso
Closed

feat(OKISO): Add activity#10778
okisooo wants to merge 1 commit into
PreMiD:mainfrom
okisooo:add-okiso

Conversation

@okisooo
Copy link
Copy Markdown

@okisooo okisooo commented May 16, 2026

Description

Added a new activity for okiso.net. Tracks live Twitch streams, video playback, 3D discography navigation, and reading the Terms of Service.

Acknowledgements

Screenshots

Proof showing the creation/modification is working as expected

(Will add screenshots later if requested by reviewers)

Copilot AI review requested due to automatic review settings May 16, 2026 23:49
],
"regExp": ".*(okiso\\.net|localhost).*",
"version": "1.0.0",
"logo": "https://i.imgur.com/LLE4SVZ.png",
@@ -0,0 +1,93 @@
import { Presence, PresenceData, ActivityType, Assets, getTimestampsFromMedia } from 'premid'
@@ -0,0 +1,93 @@
import { Presence, PresenceData, ActivityType, Assets, getTimestampsFromMedia } from 'premid'
Copy link
Copy Markdown

@github-advanced-security github-advanced-security AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@okisooo okisooo closed this May 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new PreMiD activity integration for okiso.net, intended to display Rich Presence for browsing, live Twitch streams, video playback, discography navigation, and Terms of Service viewing.

Changes:

  • Added OKISO activity presence implementation (presence.ts) with page-based status detection.
  • Added OKISO activity metadata (metadata.json) for service registration and store display.
  • Added a local tsconfig.json extending the repo base config for building the activity.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
websites/O/OKISO/presence.ts Implements runtime presence detection for OKISO site pages and media states.
websites/O/OKISO/metadata.json Registers the OKISO service (schema, URLs, regex, branding, tags).
websites/O/OKISO/tsconfig.json Adds a TypeScript config extending the repo base config for compilation output.
Comments suppressed due to low confidence (1)

websites/O/OKISO/presence.ts:22

  • presenceData is cast to any, which removes type-safety and makes it easier to accidentally set invalid presence fields (and can mask mistakes during development). Prefer declaring it as PresenceData (optionally with a small helper type for buttons) and only delete/mutate known keys.
	const presenceData = {
		largeImageKey: ActivityAssets.Logo,
		largeImageText: 'okiso.net',
		startTimestamp: browsingTimestamp,
		buttons: [
			{ label: 'Visit okiso.net', url: `https://okiso.net${pathname === '/' ? '' : pathname}` }
		]
	} as any

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,93 @@
import { Presence, PresenceData, ActivityType, Assets, getTimestampsFromMedia } from 'premid'
Comment on lines +3 to +4
// Initialize without a custom clientId to use official PreMiD Application
const presence = new Presence()
const browsingTimestamp = Math.floor(Date.now() / 1000)

enum ActivityAssets {
Logo = 'logo',
Comment on lines +19 to +21
buttons: [
{ label: 'Visit okiso.net', url: `https://okiso.net${pathname === '/' ? '' : pathname}` }
]
"okiso.net",
"localhost"
],
"regExp": ".*(okiso\\.net|localhost).*",
@okisooo
Copy link
Copy Markdown
Author

okisooo commented May 16, 2026

closing this, my agent just completely me ignored saying i don't wanna PR (atleast not yet lol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants